package com.blw.demoactiviti.utils;

import org.activiti.engine.*;

/**
 * @author: baolw
 * @date 2017/12/7 14:12
 */
public class ActivitiUtils {
    private static ProcessEngine processEngine = SpringContextHolder.getBean("processEngine");

    public static RepositoryService getRepositoryService() {
        return processEngine.getRepositoryService();
    }

    public static RuntimeService getRuntimeService() {
        return processEngine.getRuntimeService();
    }

    public static TaskService getTaskService() {
        return processEngine.getTaskService();
    }

    public static ManagementService getManagementService() {
        return processEngine.getManagementService();
    }

    public static IdentityService getIdentityService() {
        return processEngine.getIdentityService();
    }

    public static HistoryService getHistoryService() {
        return processEngine.getHistoryService();
    }

    public static FormService getFormService() {
        return processEngine.getFormService();
    }
}
